package top.yuyufeng.mbuy.entity;

import lombok.Data;

import java.util.Date;
import javax.persistence.*;

@Data
@Table(name = "mb_user")
public class User {
    @Id
    private Integer id;

    private String username;

    private String password;

    private String phone;

    /**
     * 角色 0-管理员，1-普通用户
     */
    private Integer role;

    /**
     * 状态 1-正常，0-冻结
     */
    private Integer status;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;


}